﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using bdxyit.com.RecruitmentAppSys.IDAL;
using bdxyit.com.RecruitmentAppSys.DALFactory;
using bdxyit.com.RecruitmentAppSys.Models;
using bdxyit.com.RecruitmentAppSys.ViewModels;

namespace bdxyit.com.RecruitmentAppSys.BLL
{
    public class EthnicListBLL
    {
        private static readonly IEthnicListDAL EthnicListDal = DataAccess.CreateEthnicList();
        public static List<EthnicList> GetEthnicList()
        {
            List<EthnicList> eth = EthnicListDal.SelectEthnicList();
            return eth;
        }

        public static EthnicList SelectEthnicListByEthnicID(string EthnicID)
        {
            return EthnicListDal.SelectEthnicListByEthnicID(EthnicID);
        }
        public static bool DeleteEthnicListByEthnicID(string EthnicID)
        {
            return EthnicListDal.DeleteEthnicList(EthnicID);
        }
        public static bool InsertEthnicList(EthnicList cmodel)
        {
            return EthnicListDal.InsertEthnicList(cmodel);
        }
        public static bool UpdateEthnicList(EthnicList cmodel)
        {
            return EthnicListDal.UpdateEthnicList(cmodel);
        }

    }
}
